package com.lzm.ydpt.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 用户信息
 */
public class UserInfo implements Parcelable {
    private String balance;// 余额
    private String createTime;
    private int delFlag;// 是否删除
    private String emergencyContactName;// 紧急联系人姓名
    private String emergencyContactPhone;// 紧急联系人手机号
    private String frozenMoney; // 提现中金额
    private long id;
    private long memberId; // 林棕梦用户ID
    private String phone; // 手机号
    private String realName; //  姓名
    private String nickName; //  姓名
    private int receiveStatus; // 接单状态 1接单中 0休息中
    private int status; // 帐号启用状态:0->禁用；1->启用 ,
    private String updateTime;
    private String withdrawalMoney; //已提现
    private String token;
    private String birthday;
    private int gender;
    private String city;
    private String icon;
    private String historyIntegration;
    private String personalizedSignature;
    private String username;
    private String integration;
    private String luckeyCount;
    private String job;
    private String memberLevelId;
    private String password;
    private String sourceType;
    private String growth;

    protected UserInfo(Parcel in) {
        balance = in.readString();
        createTime = in.readString();
        delFlag = in.readInt();
        emergencyContactName = in.readString();
        emergencyContactPhone = in.readString();
        frozenMoney = in.readString();
        id = in.readLong();
        memberId = in.readLong();
        phone = in.readString();
        realName = in.readString();
        nickName = in.readString();
        receiveStatus = in.readInt();
        status = in.readInt();
        updateTime = in.readString();
        withdrawalMoney = in.readString();
        token = in.readString();
        birthday = in.readString();
        gender = in.readInt();
        city = in.readString();
        icon = in.readString();
        historyIntegration = in.readString();
        personalizedSignature = in.readString();
        username = in.readString();
        integration = in.readString();
        luckeyCount = in.readString();
        job = in.readString();
        memberLevelId = in.readString();
        password = in.readString();
        sourceType = in.readString();
        growth = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(balance);
        dest.writeString(createTime);
        dest.writeInt(delFlag);
        dest.writeString(emergencyContactName);
        dest.writeString(emergencyContactPhone);
        dest.writeString(frozenMoney);
        dest.writeLong(id);
        dest.writeLong(memberId);
        dest.writeString(phone);
        dest.writeString(realName);
        dest.writeString(nickName);
        dest.writeInt(receiveStatus);
        dest.writeInt(status);
        dest.writeString(updateTime);
        dest.writeString(withdrawalMoney);
        dest.writeString(token);
        dest.writeString(birthday);
        dest.writeInt(gender);
        dest.writeString(city);
        dest.writeString(icon);
        dest.writeString(historyIntegration);
        dest.writeString(personalizedSignature);
        dest.writeString(username);
        dest.writeString(integration);
        dest.writeString(luckeyCount);
        dest.writeString(job);
        dest.writeString(memberLevelId);
        dest.writeString(password);
        dest.writeString(sourceType);
        dest.writeString(growth);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<UserInfo> CREATOR = new Creator<UserInfo>() {
        @Override
        public UserInfo createFromParcel(Parcel in) {
            return new UserInfo(in);
        }

        @Override
        public UserInfo[] newArray(int size) {
            return new UserInfo[size];
        }
    };

    public String getBalance() {
        return balance;
    }

    public void setBalance(String balance) {
        this.balance = balance;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public int getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(int delFlag) {
        this.delFlag = delFlag;
    }

    public String getEmergencyContactName() {
        return emergencyContactName;
    }

    public void setEmergencyContactName(String emergencyContactName) {
        this.emergencyContactName = emergencyContactName;
    }

    public String getEmergencyContactPhone() {
        return emergencyContactPhone;
    }

    public void setEmergencyContactPhone(String emergencyContactPhone) {
        this.emergencyContactPhone = emergencyContactPhone;
    }

    public String getFrozenMoney() {
        return frozenMoney;
    }

    public void setFrozenMoney(String frozenMoney) {
        this.frozenMoney = frozenMoney;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getMemberId() {
        return memberId;
    }

    public void setMemberId(long memberId) {
        this.memberId = memberId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public int getReceiveStatus() {
        return receiveStatus;
    }

    public void setReceiveStatus(int receiveStatus) {
        this.receiveStatus = receiveStatus;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getWithdrawalMoney() {
        return withdrawalMoney;
    }

    public void setWithdrawalMoney(String withdrawalMoney) {
        this.withdrawalMoney = withdrawalMoney;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getHistoryIntegration() {
        return historyIntegration;
    }

    public void setHistoryIntegration(String historyIntegration) {
        this.historyIntegration = historyIntegration;
    }

    public String getPersonalizedSignature() {
        return personalizedSignature;
    }

    public void setPersonalizedSignature(String personalizedSignature) {
        this.personalizedSignature = personalizedSignature;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getIntegration() {
        return integration;
    }

    public void setIntegration(String integration) {
        this.integration = integration;
    }

    public String getLuckeyCount() {
        return luckeyCount;
    }

    public void setLuckeyCount(String luckeyCount) {
        this.luckeyCount = luckeyCount;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public String getMemberLevelId() {
        return memberLevelId;
    }

    public void setMemberLevelId(String memberLevelId) {
        this.memberLevelId = memberLevelId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSourceType() {
        return sourceType;
    }

    public void setSourceType(String sourceType) {
        this.sourceType = sourceType;
    }

    public String getGrowth() {
        return growth;
    }

    public void setGrowth(String growth) {
        this.growth = growth;
    }
}
